package com.ruoyi.mdkt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author gwl
 * @since 2022-10-22
 */
@ApiModel(description = "Course")
@Data
@EqualsAndHashCode(callSuper = false)
public class Course extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课程名称
     */
    @ApiModelProperty(value = "课程名称")
    private String courseName;

    /**
     * 教师ID
     */
    @ApiModelProperty(value = "课程教师ID")
    private Long teacherId;

    @ApiModelProperty(value = "课程属性")
    private Integer type;
    /**
     * 开课学期
     */
    private String semester;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "课程发布时间")
    private LocalDateTime publishTime;
    @ApiModelProperty(value = "课程结束时间")
    private LocalDateTime endTime;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    /**
     * 课程封面
     */
    @ApiModelProperty(value = "课程封面")
    private String url;


}
